package Chapter2.Comparing;

public class TestInterface {
    public static void main(String[] args) {
        ComparableCircle c1 = new ComparableCircle(10);
        ComparableCircle c2 = new ComparableCircle(20);
        System.out.println(c1.compareTo(c2));

        ComparableRectangle r1 = new ComparableRectangle(10,5);
        ComparableRectangle r2 = new ComparableRectangle(5,5);
        System.out.println(r1.compareTo(r2));
        System.out.println();
    }
    /*ComparableCircle c1 = new ComparableCircle(10);
    ComparableCircle c2 = new ComparableCircle(20);*/


}
